
import { t } from '@src/locales'

// 项目状态和任务状态类型固定值 后续接口维护
export const projectStatusField = [
  {
    "cnName": "项目状态",
    "enName": "projectStatusId",
    "fieldType": "select",
    "setting": {
      "isMulti": true,
      "dataSource": []
    },
    "tableName": 'fixMission',
    "show": true,
    "filedGroup": "",
    "supportSelect": true,
    "supportInsert": true,
    "supportUpdate": false,
    "required": false,
    "operateList": [
      {
        "cnName": "包含",
        "enName": "CONTAINS"
      },
      {
        "cnName": "不包含",
        "enName": "NOT_CONTAINS"
      },
    ],
  },
]

// 任务状态字段固定
export const taskStatusField = [
  {
    "cnName": "任务状态",
    "enName": "taskStatus",
    "fieldType": "select",
    "setting": {
      "isMulti": true,
      "dataSource": [
        {
          "text": '草稿',
          "value": 'DRAFT'
        },
        {
          "text": '未开始',
          "value": 'NO_START'
        },
        {
          "text": '进行中',
          "value": 'IN_PROGRESS'
        },
        {
          "text": '已完成',
          "value": 'COMPLETE'
        },
        {
          "text": '已取消',
          "value": 'CANCEL'
        },
      ],
    },
    "tableName": 'fixMission',
    "show": true,
    "filedGroup": "",
    "supportSelect": true,
    "supportInsert": true,
    "supportUpdate": false,
    "required": false,
    "operateList": [
      {
        "cnName": "包含",
        "enName": "CONTAINS"
      },
      {
        "cnName": "不包含",
        "enName": "NOT_CONTAINS"
      },
    ],
  },
]

export const projectSelectField = [
  {
    fieldName: 'projectStatusName',
    displayName: t('projectManage.setting.projectStatus.title'),
    formType: 'text',
  },
  {
    fieldName: 'projectProcess',
    displayName: t('common.base.progress'),
    formType: 'text',
  },
]